From 6d67871e1a860bd194a9444090adac2c9965bd61 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 11 Dec 2007 07:11:31 +0000 Subject: [PATCH] Fix support for PPFrame with no title. --- includes/Parser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Parser.php b/includes/Parser.php index 5b7d637647..567bcd9b3f 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -5262,7 +5262,7 @@ class PPFrame { function __construct( $parser ) { $this->parser = $parser; $this->title = $parser->mTitle; - $this->titleCache = array( $this->title->getPrefixedDBkey() ); + $this->titleCache = array( $this->title ? $this->title->getPrefixedDBkey() : false ); } /** @@ -5470,7 +5470,7 @@ class PPTemplateFrame extends PPFrame { $this->args = $args; $this->title = $title; $this->titleCache = $parent->titleCache; - $this->titleCache[] = $title->getPrefixedDBkey(); + $this->titleCache[] = $title ? $title->getPrefixedDBkey() : false; } function __toString() { -- 2.20.1